package cn.yunyichina.openapi.proxy.filter.constant;

/**
 * Created by kevin on 2018/3/1.
 */
public class RegexConst {
    /*身份证号匹配正则*/
    public static final String ID_CARD_NO_REGEX="\"[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|31)|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}([0-9]|x|X)\"";

    public static final String MOBILE_PREFIX_REGEX="\"pat_mobile\":\"\\d{11}\"";

    public static final String MOBILE_REGEX="\\d{11}";

    public static final String BANK_CARD_NO_PREFIX_REGEX="\"bank_account\":\"\\d{14,19}\"";

    public static final String BANK_CARD_NO_REGEX="\\d{14,19}";

    /*加密后的身份证号正则*/
    public static final String AES_ID_CARD_NO_REGEX="##SFZTM\\|([\\s\\S]*?)\\|([\\s\\S]*?)\\|([\\d]*?)\\|([\\d]*?)\\|([\\s\\S]*?)\\$\\$";

    /*加密后的手机号正则*/
    public static final String AES_MOBILE_REGEX="##SJHTM\\|([\\s\\S]*?)\\|([\\s\\S]*?)\\$\\$";

    /*加密后的银行卡号正则*/
    public static final String AES_BANK_CARD_NO_REGEX="##YHKTM\\|([\\s\\S]*?)\\|([\\s\\S]*?)\\$\\$";

}
